package com.linjacy.httpproject.service.impl;

import com.linjacy.httpproject.service.SyncService;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service;

import java.util.function.Consumer;

@Service
public class SyncServiceImpl implements SyncService {

    @Override
    public void startSyncTask(Consumer consumer) {
        String testUserId = "1";
        consumer.accept(testUserId);
    }

}
